package com.iw.democorner;

import java.awt.BorderLayout;
import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JLabel;
import javax.swing.LayoutStyle.ComponentPlacement;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class InfoDiag1 extends JDialog {

	private final JPanel contentPanel = new JPanel();

	InfoDiag1 mDialog;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		try {
			InfoDiag1 dialog = new InfoDiag1();
			dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			dialog.setVisible(true);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Create the dialog.
	 */
	public InfoDiag1() {
		mDialog = this;
		setUndecorated(true);
		setBounds(100, 100, 849, 643);
		getContentPane().setLayout(new BorderLayout());
		contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
		getContentPane().add(contentPanel, BorderLayout.CENTER);
		JButton btnNewButton = new JButton("Back");
		btnNewButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				mDialog.dispose();
			}
		});

		JLabel lblNewLabel = new JLabel("New label");

		JLabel label = new JLabel("New label");

		JLabel label_1 = new JLabel("\u5B89\u88C5");

		JLabel lblNewLabel_1 = new JLabel("New label");

		JLabel label_2 = new JLabel("\u5BA2\u6237\u7AEF");

		JLabel lblusb = new JLabel(
				"\u8BF7\u4F7F\u7528USB\u8FDE\u63A5\u7EBF\u5C06\u8BBE\u5907\u62E6\u622A\u5230\u7535\u8111");

		JLabel lblusb_1 = new JLabel(
				"\u5E76\u5C06\u8BBE\u5907\u7684\"USB\u8C03\u8BD5\"\u5F00\u5173\u6253\u5F00");

		JLabel label_3 = new JLabel(
				"\u6216\u8005\u901A\u8FC7\u4E8C\u7EF4\u7801\u76F4\u63A5\u4E0B\u8F7D");

		JLabel lblNewLabel_2 = new JLabel("New label");

		JLabel lblNewLabel_3 = new JLabel("New label");

		JLabel label_4 = new JLabel("New label");

		JLabel picLabel = new JLabel("New label");
		GroupLayout gl_contentPanel = new GroupLayout(contentPanel);
		gl_contentPanel
				.setHorizontalGroup(gl_contentPanel
						.createParallelGroup(Alignment.LEADING)
						.addGroup(
								gl_contentPanel
										.createSequentialGroup()
										.addGroup(
												gl_contentPanel
														.createParallelGroup(
																Alignment.LEADING)
														.addGroup(
																gl_contentPanel
																		.createSequentialGroup()
																		.addContainerGap()
																		.addComponent(
																				btnNewButton,
																				GroupLayout.PREFERRED_SIZE,
																				94,
																				GroupLayout.PREFERRED_SIZE))
														.addGroup(
																gl_contentPanel
																		.createSequentialGroup()
																		.addGroup(
																				gl_contentPanel
																						.createParallelGroup(
																								Alignment.LEADING,
																								false)
																						.addGroup(
																								gl_contentPanel
																										.createSequentialGroup()
																										.addGap(118)
																										.addComponent(
																												label_1,
																												GroupLayout.DEFAULT_SIZE,
																												GroupLayout.DEFAULT_SIZE,
																												Short.MAX_VALUE))
																						.addGroup(
																								gl_contentPanel
																										.createSequentialGroup()
																										.addGap(48)
																										.addComponent(
																												lblNewLabel,
																												GroupLayout.PREFERRED_SIZE,
																												136,
																												GroupLayout.PREFERRED_SIZE)))
																		.addGroup(
																				gl_contentPanel
																						.createParallelGroup(
																								Alignment.LEADING)
																						.addGroup(
																								gl_contentPanel
																										.createSequentialGroup()
																										.addGap(18)
																										.addComponent(
																												label,
																												GroupLayout.PREFERRED_SIZE,
																												321,
																												GroupLayout.PREFERRED_SIZE)
																										.addPreferredGap(
																												ComponentPlacement.UNRELATED)
																										.addComponent(
																												picLabel,
																												GroupLayout.PREFERRED_SIZE,
																												267,
																												GroupLayout.PREFERRED_SIZE))
																						.addGroup(
																								gl_contentPanel
																										.createSequentialGroup()
																										.addPreferredGap(
																												ComponentPlacement.UNRELATED)
																										.addComponent(
																												lblNewLabel_1)
																										.addGap(37)
																										.addComponent(
																												label_2)
																										.addGap(124)
																										.addGroup(
																												gl_contentPanel
																														.createParallelGroup(
																																Alignment.LEADING)
																														.addComponent(
																																lblNewLabel_3)
																														.addComponent(
																																lblNewLabel_2)
																														.addComponent(
																																label_4)))))
														.addGroup(
																gl_contentPanel
																		.createSequentialGroup()
																		.addGap(109)
																		.addGroup(
																				gl_contentPanel
																						.createParallelGroup(
																								Alignment.LEADING)
																						.addComponent(
																								lblusb_1,
																								GroupLayout.PREFERRED_SIZE,
																								173,
																								GroupLayout.PREFERRED_SIZE)
																						.addComponent(
																								lblusb)
																						.addComponent(
																								label_3,
																								GroupLayout.PREFERRED_SIZE,
																								173,
																								GroupLayout.PREFERRED_SIZE))))
										.addContainerGap(39, Short.MAX_VALUE)));
		gl_contentPanel
				.setVerticalGroup(gl_contentPanel
						.createParallelGroup(Alignment.LEADING)
						.addGroup(
								gl_contentPanel
										.createSequentialGroup()
										.addGroup(
												gl_contentPanel
														.createParallelGroup(
																Alignment.LEADING)
														.addGroup(
																gl_contentPanel
																		.createSequentialGroup()
																		.addContainerGap()
																		.addComponent(
																				btnNewButton,
																				GroupLayout.PREFERRED_SIZE,
																				47,
																				GroupLayout.PREFERRED_SIZE)
																		.addGap(18)
																		.addGroup(
																				gl_contentPanel
																						.createParallelGroup(
																								Alignment.BASELINE)
																						.addComponent(
																								lblNewLabel,
																								GroupLayout.PREFERRED_SIZE,
																								129,
																								GroupLayout.PREFERRED_SIZE)
																						.addComponent(
																								label,
																								GroupLayout.PREFERRED_SIZE,
																								129,
																								GroupLayout.PREFERRED_SIZE))
																		.addGap(72)
																		.addComponent(
																				label_4)
																		.addPreferredGap(
																				ComponentPlacement.RELATED)
																		.addGroup(
																				gl_contentPanel
																						.createParallelGroup(
																								Alignment.BASELINE)
																						.addComponent(
																								label_1,
																								GroupLayout.PREFERRED_SIZE,
																								61,
																								GroupLayout.PREFERRED_SIZE)
																						.addComponent(
																								lblNewLabel_1)
																						.addComponent(
																								label_2)
																						.addComponent(
																								lblNewLabel_2))
																		.addPreferredGap(
																				ComponentPlacement.RELATED)
																		.addGroup(
																				gl_contentPanel
																						.createParallelGroup(
																								Alignment.BASELINE)
																						.addComponent(
																								lblusb)
																						.addComponent(
																								lblNewLabel_3))
																		.addPreferredGap(
																				ComponentPlacement.RELATED)
																		.addComponent(
																				lblusb_1)
																		.addGap(37)
																		.addComponent(
																				label_3))
														.addGroup(
																gl_contentPanel
																		.createSequentialGroup()
																		.addGap(75)
																		.addComponent(
																				picLabel,
																				GroupLayout.PREFERRED_SIZE,
																				129,
																				GroupLayout.PREFERRED_SIZE)))
										.addContainerGap(184, Short.MAX_VALUE)));
		contentPanel.setLayout(gl_contentPanel);
	}
}
